-- File TILE.lua
-- 
-- Contains the Tile Table, as well as functions associated with creating 
-- 'tile' objects
-- 

Tile = {}
Tile.SizeX = 32
Tile.SizeY = 32

Tile.Type = {}

Tile.Type.Min    = 0 -- used like 'enum', can be extended to work with
Tile.Type.Light  = 1 -- A* style path finding
Tile.Type.Medium = 2 -- 
Tile.Type.Hard   = 3 -- 
Tile.Type.Max    = 4 -- 

-- Tile:: new
-- returns a new "tile" object, given the specific type and position
-- of the new Tile.
-- 
Tile.new = function( pos, t )
	local self = {}
	
	self.position = pos 
	self.type     = t   
	
	return self
end